-
February 25th, 2012, 08:21 AM
#1
WinSock & GTK
Dear CodeGuru
I would like to ask you questions about WinSock. I'm a newbie in network programming. I'm just working on GTK project including WinSock connection. I have already done GTK solution, which works fine and WinSock Clinet/Server side with work fine too.
Now I really need to chceck network events in my sockets directly in GTK. There is no possibily to make any loop using for or while statements, coz my program stop working and looping.
I would like to ask you about any possibility how to chceck arriving bytes from socket and doing some GTK stuff while normal program progress.
Example:
1. GTK+ create stuff
2. Initialize connection to server, create socket
3. Running GTK+ stuff while chcecking ariving bytes
4. If any bytes => go another GTK stuff
My program files are here:
Code:
Main.cpp http://pastebin.com/4x0dBxfv
Main.h http://pastebin.com/9HJTvm2X
Connect.cpp http://pastebin.com/TwxRCuFt
Connect.h http://pastebin.com/eYkNxFih
Time.cpp http://pastebin.com/pqtgJQH0
Time.h http://pastebin.com/D33Lsx8q
Solution http://s1.mfsoft.sk/andromeda/DxSock.7z
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|