Re: Java Coin Flip Program Programming Software Development by Salem > It looks like it's really helped a few people already. Yeah, 4 new members with consecutive user ID's, smelling like sock-puppet accounts. Re: Java Coin Flip Program Programming Software Development by Dani …, 4 new members with consecutive user ID's, smelling like sock-puppet accounts. I realized that after I posted. I’m… mysql.sock Programming Databases by Prakash_8111 Hi Guys , Have you any idea what does mysql.sock used for and where we can find in windows system. rgds Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Programming Web Development by cdoggg94 …'t connect to local MySQL server through socket '/tmp/mysql.sock' (2)" anyone have any ideas? Re: mysql.sock Programming Databases by colweb Look here [URL="http://dev.mysql.com/doc/refman/5.1/en/can-not-connect-to-server.html"]http://dev.mysql.com/doc/refman/5.1/en/can-not-connect-to-server.html[/URL] for some explanation. Re: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Programming Web Development by cdoggg94 I have changed the <img src=get.php?[COLOR="Red"]number[/COLOR]=$lastid> to id like it should be and it still doesnt work Re: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Programming Web Development by cwarn23 It means you need to contact your web host and tell them that mysql needs the my.cnf file repairing unless you own a dedicated server, vps, xampp or wamp in which case it will be more difficult. Usually this error indicates that mysql hasn't had a correct installation and in fact I just fixed this devil of an error recently and turned out to be a … Re: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Programming Web Development by cdoggg94 Thanks a lot! I am going to call my hosting company right away and see what they have to say about it. Re: Server Socket Setup Issue Programming Software Development by pedbsktbll "sock = servSock.accept();" ... That's a blocking call. Your coding is awaiting someone to connect on port 9999. Telnet to that port and your code will continue. (telnet 127.0.0.1 9999) Re: Change-a-Letter-or-Two-Game Community Center Geeks' Lounge by joshSCH sock Re: Change-a-Letter-or-Two-Game Community Center Geeks' Lounge by vinod_javas sock Re: You know you are old when... Community Center Geeks' Lounge by almostbob sock it to me Re: Scrabble Community Center Geeks' Lounge by Hiroshe sock PHP sockets from remote host Programming Web Development by Kalphiter …;); echo("Beep sent\n"); } usleep(10000); socket_set_block($sock); $read[0] = $sock; for($i = 0; $i < $max; $i++)…gt;uid = $i; } if($client[$i]->sock == null) { if(($client[$i]->sock = socket_accept($sock)) < 0) { consoleEcho("socket_accept() failed:… Winsock Multi-Client Servers Programming Software Development by FireNet …SIGQUIT 3 //SOCKETS SOCKET sock,client; void s_handle(int s) { if(sock) closesocket(sock); if(client) closesocket(client…lt;<endl; unsigned long b=1; ioctlsocket(sock,FIONBIO,&b); /****************SERVER.cpp****************/ [/CODE] …number of places you call recv(sock... or send(sock... to one place and use … Program does not read through correctly Programming Software Development by fatboysudsy … authentication(box,id,sock); //char Q; // recv_data(sock,sending_data); // if (sending_data[0]==Q) // { // query_dealing(sending_data,sock); // } // else // { // viewing_data (sending_data,sock); // } close_socket(sock); } int authentication(char… Winsock file transfer->Epic slowness Programming Software Development by VBNick … return FALSE; } return TRUE; } void CloseSocket(SOCKET sock) { if(sock) closesocket(sock); WSACleanup(); bActiveSocket = FALSE; bConnected = FALSE; AS_AppState …amp; ofstrSaveFile->good()) { trHeader_out.action = AS_ACCEPT; send(sock, (char*)&trHeader_out, CHUNK_SIZE, 0); AS_AppState = AS_FILEIN;… Problem in simple client server communication Programming Software Development by getmeusername … = INADDR_ANY; bzero(&(server_addr.sin_zero),8); //bind socket if (bind(sock, (struct sockaddr *)&server_addr, sizeof(struct sockaddr)) == -1) { perror("… Client/Server Issues Programming Software Development by sciprog1 … { ServerSocket s = new ServerSocket (2000); Socket sock; BufferedReader datain; BufferedWriter dataout; String Message = …" ..."); dataout = new BufferedWriter (new OutputStreamWriter (sock.getOutputStream ())); dataout.write (Message, 0, Message.length ()); … different types of communication causes multithreaded server/client to hang Programming Software Development by initialise …close(); input.close(); bos.close(); bis.close(); this.sock.close(); } catch (Exception e) { System.out.…out.close(); input.close(); bos.close(); bis.close(); sock.close(); } catch (Exception e) { System.out.println… Server - Client little problem, please HeLp Programming Software Development by pissman …CreateThread(NULL, 0,receive_cmds,(LPVOID)client, 0, &thread); } closesocket(sock); WSACleanup(); return 0; } [/CODE] ::--Client--:: [CODE]#include <… SIGKILL 9 #define SIGQUIT 3 SOCKET sock,client; void s_handle(int s) { if(sock) closesocket(sock); if(client) closesocket(client); WSACleanup… Returning lines from text file to client Programming Software Development by noorf …result[256]; struct sockaddr_in server_addr,client_addr; int sin_size; if ((sock = socket(AF_INET, SOCK_STREAM, 0)) == -1) {…); send(connected, result,strlen(result), 0); } } } close(sock); return 0; } int findName(char* clientSearch, char* serverResult) … Re: NameError and some question about the code >.< Programming Software Development by BearofNH … with bt_socket = bt_connect() # When bt_connect() returns "sock", that value gets assigned to "bt_socket" …call bt_send_data1(bt_socket) then inside routine bt_send_data(sock) the variable [B]sock[/B], which is strictly local to … to be executed because the [ICODE]return sock[/ICODE] statement is going to complete the execution… C++ to C# Dashboard Programming Software Development by WargRider …once class DashboardConnecter { private: WSADATA data; SOCKET sock, tmp_sock; SOCKADDR_IN connInfo, remote_info; int cLen; char… htons(connPort); connInfo.sin_addr.S_un.S_addr = inet_addr(connIP); if(bind(sock, (SOCKADDR*) &connInfo, sizeof(SOCKADDR_IN)) == SOCKET_ERROR) { return… File Exchange Programming Software Development by kwabyna.lilwayne … IPAddress.Parse(TextBox1.Text) port = TextBox2.Text Try sock.Connect(ip, port) ToolStripStatusLabel1.Text = "Connected&…Object, ByVal e As System.EventArgs) If sock.Connected Then sock.Close() ToolStripStatusLabel1.Text = "Disconnected"… incomplete file transfer via sockets in python Programming Software Development by Bhuwan_1 …split(' end')[0] if os.path.exists(filename): sock.send('YES') sock.send(str(os.path.getsize(filename)) + ' end…= len(downbytes) while downlen < filesize: downbytes = sock.recv(4096) if not downbytes: break foo.write(downbytes)… Clock Synchronization to run once and terminate Programming Software Development by marconi0708 …printf(buffer + 100); OutputDebugString(buffer + 100); } timer_gap = sleep_time; } closesocket(sock); break; } return(DefWindowProc(hwnd, message, w_param, l_param)); } void clock_sync_thread… Re: NameError and some question about the code >.< Programming Software Development by snowfish …handles the bluetooth connection: def bt_connect(): global sock # create a bluetooth socket sock=socket.socket(socket.AF_BT,socket.SOCK_STREAM) target=''#…") # receive() def quit(): print"socket closed" sock.close() app_lock.signal() app_lock=e32.Ao_lock() bt_connect() bt_send_data1() bt_send_data2()… Winsock - connect() error Programming Software Development by VBNick …("Couldn't create socket."); return 0; } if(WSAAsyncSelect(sock, hWindow, SOCKET_MESSAGE, FD_ACCEPT | FD_CONNECT | FD_READ | FD_CLOSE) == SOCKET_ERROR) …"); return false; } return true; } void CloseSocket(SOCKET sock) { if(sock) closesocket(sock); } BYTE *GetScreenBits() { RECT wRect; HWND hDesktop = GetDesktopWindow… Sockets and relaying messages Programming Software Development by sirlink99 …System.out.println("Client Connected: " + sock); PrintStream ps = new PrintStream (sock.getOutputStream ()); ps.println ("Server: Hello"); …block e.printStackTrace(); } try { PrintStream ps = new PrintStream(sock.getOutputStream()); ps.println ("Client: Hi Server"); DataInputStream…