X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=SDLNet_TCP_Recv.html;h=b575b956ee64d34deee78eacb5d5eb3b9ebc41b8;hb=9431271932847603881d2254d9dfa13b7b39048c;hp=dcbfc6b2870cd2dcef586b67a3fc4bd6059f4eab;hpb=2c80f4c7f94028c81a2c36f5f0e96d21051e9454;p=sdl2referencejp%2Fsdl2referencejp.git diff --git a/SDLNet_TCP_Recv.html b/SDLNet_TCP_Recv.html index dcbfc6b..b575b95 100644 --- a/SDLNet_TCP_Recv.html +++ b/SDLNet_TCP_Recv.html @@ -34,6 +34,23 @@ –ß‚è’l: ŽóM‚µ‚½ƒoƒCƒg”. ƒGƒ‰[‚ª”­¶‚µ‚½, ‚Ü‚½‚̓Šƒ‚[ƒg‘¤‚ªÚ‘±‚ð•Â‚¶‚½ê‡‚Í0ˆÈ‰º

+

ƒTƒ“ƒvƒ‹ƒR[ƒh

+ +
+// sock‚©‚ç‚¢‚­‚‚©‚̃eƒLƒXƒg‚ðŽóM‚·‚é
+//TCPsocket sock;
+#define MAXLEN 1024
+int result;
+char msg[MAXLEN];
+
+result=SDLNet_TCP_Recv(sock,msg,MAXLEN);
+if(result%lt;=0) {
+    // ƒGƒ‰[‚ª”­¶‚µ‚½ê‡‚Í–³Ž‹‚·‚邱‚Æ‚à‚Å‚«‚é
+    // ‹°‚ç‚­Œ»Ý‚ÍŽg‚¦‚È‚¢‚¾‚¯‚È‚Ì‚Å, Ø’f‚·‚é‚Æ‚æ‚¢
+}
+printf("ŽóM‚µ‚½: \"%s\"\n",msg);
+
+

ŽQÆ

SDLNet_TCP_Send, SDLNet_TCP_Accept,