You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basicly here my code for the server: http://pastebin.com/vBALV183
Note: emu.frameadvance() is just a function to do some work(instead of sleep) on the application side.
And this is my code for the client side: http://pastebin.com/Pjbc487x
Note: If I comment "str = f:read();", the server will just send "hellooooooooooooo\n" correctly.
Actually I don't run this directly on console but with an application that has an embeded lua(5.1) console as UI.
I did a couple of test and so far, I feel somewhat limited when using the pipe on the client side:
http://stevedonovan.github.io/winapi/topics/readme.md.html#Pipe_Server
Basicly here my code for the server:
http://pastebin.com/vBALV183
Note: emu.frameadvance() is just a function to do some work(instead of sleep) on the application side.
And this is my code for the client side:
http://pastebin.com/Pjbc487x
Note: If I comment "str = f:read();", the server will just send "hellooooooooooooo\n" correctly.
Actually I don't run this directly on console but with an application that has an embeded lua(5.1) console as UI.
Hmm.. here's what it look like:
http://i.imgur.com/Orf4qxj.png
Basicly it's look like some weird string overflow.(I added some more "o" to "hello", so we can see the problem a bit better)
The text was updated successfully, but these errors were encountered: