could not create socket: error 0x0000273F

I've got to use postGRE instead of mySQL for a client. I have installed the NuSphere UltraSQL program (windows port of postGRE) and I get the following error:psql: could not create socket: An address incompatible with the requested protocol was used.(0x0000273F)Anyone know why? ...

ERROR kernel nl__write_defer: write failed on socket

Running Sybase 12.5.0 on NT kernel nl__write_defer: write failed on socket I am getting this error followed by about 10-15 lines of Cannot send, host process disconnected: 000006ac spid:Has any body got any ideasIt is not causing any user problems (so far) ...

maildir delivery failed: create maildir file / Permission denied

when I'm sending an email to an intern address I receive this message:: to maildir delivery failed: create to maildir file/home//Maildir/tmp/1229421635.P25028.srv-proxy: Permission denied how to solve this problem? I created already other account and it go very wellI tried to recreate this account b ...

HELP:FATAL ERROR:Unable to Create Socket

I installed OmniHTTPd on Windows 98 system, followed all instructions, but still when I run it I receive message:--------------------|Fatal Error |--------------------|Unable to create ||socket (some kind ||of number)! |--------------------And when I run *.php files nothing happens!Please HELP! ...

Create socket in another thr

I don't know why, but it seem that i cant create a socket in another thread !i made a CWinThread class called "MultiThread" then when i send to the thread a post message, its launch this function:Code Snippetvoid MultiThread::CreateSockets(WPARAM, LPARAM){//for (int i=1;i<=99;i++)//{Soc ...

Create socket in another threads

I don't know why, but it seem that i cant create a socket in another thread !i made a CWinThread class called "MultiThread" then when i send to the thread a post message, its launch this function:Code Snippetvoid MultiThread::CreateSockets(WPARAM, LPARAM){//for (int i=1;i<=99;i++)//{Soc ...

Create Socket in another Thread

I don't know why, but it seem that i cant create a socket in another thread !i made a CWinThread class called "MultiThread" then when i send to the thread a post message, its launch this function:Code Snippetvoid MultiThread::CreateSockets(WPARAM, LPARAM){//for (int i=1;i<=99;i++)//{Soc ...

unable to create socket...

Well am trying to create a port scanner for which am trying to create a socket first and then trying to connect at that particular port but the problem is every time i try to create a socket it returns false.......please help as soon as possible......BOOL CTrial1Dlg::test (CString IP,UINT nPort){soc ...

can't create socket

i have a dialog that is client.this client is connecting to a server, and send text to there.this code works only the first time i run it.after that it can't create the socket. the error code is "WSAEADDRINUSE - (10048)". i saw in last posts, that i need to change the options of the socket ...

Cant create socket in ISAPI ext

when I try to create a socket inside ISA (which i am developing) I get error 10106 (WSAEPROVIDERFAILEDINIT).WSAData d;int i=WSAStartup(0x0101,&d);if(i){char t[200];wsprintf(t,"WSAStartup:%d",i);M_ASSERT2(0,t);}M_ASSERT2(0,"Before creating socket");m_states+=SF_WINSOCK_IS_INIT ...

Cant create socket in ISAPI ext

when I try to create a socket inside ISA (which i am developing) I get error 10106 (WSAEPROVIDERFAILEDINIT).WSAData d;int i=WSAStartup(0x0101,&d);if(i){char t[200];wsprintf(t,"WSAStartup:%d",i);M_ASSERT2(0,t);}M_ASSERT2(0,"Before creating socket");m_states+=SF_WINSOCK_IS_INIT ...

Oracle run root.sh failed (create Diskgroup failed)2011-05-18 07:31:03.088: [ OCRC

i install grid for two node,when i finished installation,i run root.sh,and from the output of root.sh ,i find can not create asm diskgroup,and following is info: DiskGroup MyDG creation failed with the following message:ORA-15018: diskgroup cannot be createdORA-15031: disk specification '/dev/oracle ...

Ubuntu Can't create socket

I'm quite new to using sockets, so I thought I'd simply try to create one. I tried to create a socket using a simple C script like this:#include <sys/types.h>#include <sys/socket.h>int main(){int s = socket(AF_INET, SOCK_STREAM, 0);printf("%d\n", s);return 0;}However, when run, ...

DB2 on windows nt : Failed Create Procedure

I tried to create a stored procedue. When I run the statementCREATE PROCEDURE mytest(IN v_id CHAR(10),IN v_name CHAR(20))LANGUAGE SQLBEGINENDI got errors below.. I've seen some document mentioned about writtingstored proc in other languages and you have to have the compilerinstalled on the server.If ...

Create Socket server and client?

Hi, I am new to C++I am working with C++ .NET to create a multiplayer game for a project. However I need to connect the multiple computers together, for it to work, with one computer acting as the server and the other (max of 6 others) connecting to it as clients.I would like to know how to create a ...

How to create socket connection in MANET's?

I want to create an application for ad-hoc network.I have a little bit good knowledge of javaBut I cant decide from where to start. Please Help me to start ...

Create Socket Error In Release Mode with Static Link.

I have problem when using CSocket. My program can run well in Debug mode, and also in release mode using MFC in shared DLL. But When I use release mode using MFC as static library i got running error "the memory could not be read" . I have located the error. It is in function Create of cla ...

Create socket on a different IP??

I am having a problem. I am using CASyncSocket for my server, and for some reason, am unable to bind it to a specific IP. Here is my code:if (!Create(m_Port, SOCK_STREAM, FD_ACCEPT)){}else{ListenSocket->Listen();}Now how do I make it bind to a specific IP?? I am so lost, ...

SecurityException when create socket

i use jdk 1.2.1. it work properly when i use Appletviewer but it has error when i use internet explorer. this is a code.try {s = new DatagramSocket();} catch (Exception e) {}the error message iscom.ms.security.SecurityExceptionEx[rapplet1.actionPerformed]: cannot access 0at com/ms/security/permissio ...

Ubuntu &quot;Couldn't create socket&quot; In Pidgin

Ok, About a 5 days ago, I could connect to Myspace IM just fine. But, one day, it gave me this error:Couldn't create socketAny ideas? ...

Socket Create Error

I have a php script like this and when try to execute it its giving an error like this how can it be?Fatal error: Call to undefined function: socket_create() in c:\program files\apache group\apache\htdocs\asd\istatistik.php on line 16this is my php script<tr><td width="24%" valign ...

CAsyncSocket cannot connect - A non-blocking socket operation...

I am trying a CAsyncSocket class with MFC.class CClientSocket : public CAsyncSocket{// ...};CClientSocket g_skClient;void CSocketClassMFCDlg::OnBnClickedOk(){CString txtHostAddr = _T("10.162.60.253");UINT uHostPort = 80;UINT uSocketPort = 27015;int nSocketType = AF_INET;long lSocketEvent = ...

socket problem

i am making a project of chat server i am using winsock2 to create socket but i want to know some explaination regarding the structure and functions usedin the code:AS THE GIVEN CODE I WANT TO KNOW WHY THE THINGS ARE REQUIRED IN THIS CODE LIKE:STRUCTURE - SOCKADDRZeromemory();ws32.libCONNECT FUNCTIO ...

Help developping a socket client

I'm new to Socket Programming, and i've only learned C recently so probably what i'm asking will be very obvious, sorry in advance (=ok Here's my code/* * File: Inside_Client.c* Author: Ghaith Hachem and Adel Youssef** Created on March 17, 2008, 6:12 AM*/#define EXIT_SUCCESS 0#define PORT 1234#defin ...

PHP Socket Help..

I have a server.php:<?phpset_time_limit (0);$host = '127.0.0.1';$port = 1234;$sock = socket_create(AF_INET, SOCK_STREAM, 0) or die("could not create socket");socket_bind($sock, $host, $port) or die("Could not bind to socket\n");socket_listen($sock, 3) or die("Could not se ...

socket programing problem

I have a problem with a simple client/server socket program.the connection is done through 2 connections a udp connection and a tcp connection.the flow is that the client sends a udp packet to the server and the server returns it through a tcp connection.this is done in a loop.my code works fine on ...

udp socket (recvsocket) problem...

hello, i'm trying to catch dns (port 53) -udp datagramms in a way like this:#include <windows.h>#include <winsock.h>#include <stdio.h>void getpacket() {SOCKADDR_IN addr_Srv, addr_Cli;SOCKET sock_Listen;char szMessage[256], buf[255];int clilen;short listenport;WORD sockVersion;WSADA ...

Socket connections, do while loops and variables

I'm using a do while loop to parse data via a socket connection to a remote server, brings back an ID and puts all this info into our database.This works spot on when there is only one instance in the loop. It connects, brings back for example ID 600 and stores it in the database.When there is more ...

What will a flash xml socket connect to - please help - insanity is near

What will a flash xml client socket connect to?I have a working php TCP/IP server socket bound to a port >1023 and the flash client will not even connect to it. I can connect to it with non-xml client.Can anyone explain this to me - it has been driving me mad for weeks!Please help!ThanksdocWorkin ...

php socket server - can't connect from flash xml client socket

HiI am trying to connect a Flash client socket (XML) to a php socket server (using Flash 8 and php 5).My php socket server responds correctly when I connect to it with a php client socket but fails when I try to connect with the flash xml client socket.Both codes are included below - they are both i ...

Socket + UDP

guys. It's my first post. Sorry for my english...An external device send some data on a port of my PC with the UDP protocol. I'm trying to create a "port scan" which does something when the data arrive at the port. I read on the manual that the socket_listen is not avalaible for UDP. They ...

Socket DLL

I am making a MFC ActiveX DLL that connects to a server through sockets. While the socket is being created and connected to the listening server, the next lines of code give an error causing the DLL to fail.Also I checked the contents of "this" pointer in the function and that seems to hav ...

Polling UDP socket

Long time listner... First time caller.Hey Everyone,I'm trying to do the ill-received practice of polling a UDP socket in a "server" I wrote in C. The reason being when my "server" will live on a PC inside an industrial controller in a factory. When the "server" is aske ...

socket returning INVALID_SOCKET

I can't find why my call to socket() is always returning INVALID_SOCKET. This call is made in a threadfunc, here is the function :DWORD WINAPI startscan( LPVOID lpParam ){THREAD_PARAMS* StructThreadParam = (THREAD_PARAMS*)lpParam;struct sockaddr_in targetsocket;char data[1000];int sock;targetsocket. ...

What will a flash xml socket connect to - please help - insanity is near

What will a flash xml client socket connect to?I have a working php TCP/IP server socket bound to a port >1023 and the flash client will not even connect to it. I can connect to it with non-xml client.Can anyone explain this to me - it has been driving me mad for weeks!Please help!ThanksdocWorkin ...

flash xml client socket will not connect to php socket server

HiI am trying to connect a Flash client socket (XML) to a php socket server (using Flash 8 and php 5).My php socket server responds correctly when I connect to it with a php client socket but fails when I try to connect with the flash xml client socket.Both codes are included below - they are both i ...

How to create server and client sockets in the same program?

I want to write a program using which i can have a chat program.I want server and client in same programI want to send message from server to client and then from client to server.I am wrinting the server and client programs of mineplz tell me what modifications I need to do to achieve thisThank you ...

Ubuntu TIP: Problem With a socket directory from PulseAudio

pulseaudio is a powerful and strange beast.Today I restarted X... Actually I think I restarted the whole machine. Later when I tried to start pulseaudio, I couldn't.There are some crazy people out there who will tell you that pulseaudio is a drop-in replacement for esd, and that it will start every ...

Ubuntu C++ - Socket won't bind

I don't know why, but binding fails every time.#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <unistd.h>#include <stdio.h>int main(){int sockMain;printf("Creating socket...\t");if ((sockMain = socket(AF ...

Ubuntu [PHP] Problems creating a listening socket

I'm attempting to code a fairly basic script to serve up messages to a few clients via sockets.I've been stopped in my tracks very early on, however. When I try to call socket_create_listen(), I get the following error:PHP Fatal error: Call to undefined function socket_create_listen()My code:<?ph ...

PHP Socket Server

Okay i created a HTTP Ajax chat a while back and its really hitting my web server hard, its created using memcache to store the data in but still hits the server hard.Im wanting to create a php socket run it on my server then either use java or flash for the users to connect to the socket since java ...

Receive messages in a dialog based application through socket

I am using following code to send message to remote machine through sockets, I am calling mentioned code when a button of MFC dialog based app is clicked and it is working fine. But I don't know how to receive messages from remote machine through sockets.Can anyone please guide me how to receive mes ...

Socket server connection lost

I read this Socket Programming tutorial (http://www.devshed.com/Server_Side/PHP/SocketProgramming/page2.html) and tried to execute the simple server example. When i telnet to the ip-address and port, it connects, and when i input a string, it losts the connection.could somebody please tell me why is ...

MySQL calculating percentage from 2 tables (failed and success)

I wonder if I'm able to do query to calculate percentage from this two tables 1st table is success summary +----------+-------------+---------------+ | TERMINAL | OFFICE | TOTAL_SUCCESS | +----------+-------------+---------------+ | AAA | CARTENZ | 4 | | AAA | EVEREST | 7 | | AAA | KILIMANJARO | 2 | ...

Create table with partition key

Below is my query to create table with partition, but once i execute it its failed.CREATE TABLE packextra_trans3 ( ID bigint(20), JobTicketID bigint(20), FieldID1 varchar(12), FieldID2 varchar(50), FieldID3 int(8), FieldID4 int(5), FieldID5 int(6), FieldID6 int(8), FieldID7 varchar(50), FieldID8 int ...

Basic PHP Socket Programming Problem...

I started learning socket programming with php, i got a simple code from tutorial 1, which is the introductory example, here's the code :<?php$host = "127.0.0.1";$port = 58;set_time_limit(0);$socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not create socket");$re ...

java.net.SocketExcep tion: Connection reset by peer: socket write error

this is the output on serverinit:deps-jar:compile-single:run-single:checking the client of ip 169.254.86.65checking the client at port 59000checking the client at hostname RAFSystem with169.254.86.65is onlineprobing the client of ip 169.254.86.65creating the client of ip 169.254.86.65 whose hostname ...

AfxGetInstanceHandle failed in lib code

Hii have developed a library which include CSocket implementation I am developing a win32 application and when i call function of my library to create socket then program crashes because CSocket constructor or create function call AfxGetInstanceHandle from lib and it cannot get instance handle.how c ...

How to get the output value from socket?

I've written two programs.One is for sending data from outside,another is for receiving the message.Both work well.But I also want to get the message value for next program.The problem is I have no idea how to get the value from the receiver. PLZ help me out!Many Thanks!This is the message sender:fr ...

my socket programming not working properly to send data from client to server

i wrote the socket script in python, Here both server and client running in under same machine. operating system is ubuntu 8.10 desktop version.tcp server 1 #!/usr/bin/env python2 3 import socket4 import sys5 6 server_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)7 server_socket.bind(( ...