Sponsored Content
Top Forums Programming Sockets donot send any thing to client Post 4767 by qodoc on Tuesday 31st of July 2001 06:47:21 AM
Old 07-31-2001
does this help?

how about figuring out whether your computer is running the telnet service. check your inetd configuration.

also check whether you loopback connection is up.

thx.
qodoc


 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to send attachment to web-based email client using mailx

hi, i am trying to send mail with attachment to web-based email client like gmail.com using mailx. the problem is it is displayed in content rather than as attachment. the code i am using is as follows, uuencode test1.txt test1.txt | mailx -s "test only" aaaa@gmail.com does anyone... (1 Reply)
Discussion started by: randomcz1
1 Replies

2. UNIX for Dummies Questions & Answers

how to send mail from server to client's email-id

i want to send email from server to the client's email-id. server is solaris. please help me out.i want to send mail to the email-id not to the var/spool/mail. (8 Replies)
Discussion started by: parmeet
8 Replies

3. Programming

UDP socket - can both client and server recv and send

Hi, Am very new to socket programming. When we use UDP sockets to communicate between two processess, will both the client/server socket be able to send/recv ? meaning can sendto()/ recvfrom() be used on both server and client? It could be useful even if anybody provide some link on socket... (1 Reply)
Discussion started by: rvan
1 Replies

4. Programming

How to acknowledge from client to server in sockets

Hi all, i am having a doubt regarding how to get the acknowledgement(reply) from client to server & how to recieve at the server....imagine there r 8 frames...we have to send first 4frames at a time and after tat we have to receive and ack and only after receiving an ack we have to send... (1 Reply)
Discussion started by: Rohil
1 Replies

5. UNIX for Advanced & Expert Users

How to allow roaming client to send mails via its mail server

Hi folks OS- Debian Etch Xen postfix courier perdition perdition-mysql MySQL Single public IP Dom0 - Debian Etch workstation Server-1, domU1 for routing with perdition and perdition-mysql installed Server-2, domU2, mail server for domain-A Server-3, domU3, mail server for... (2 Replies)
Discussion started by: satimis
2 Replies

6. Homework & Coursework Questions

Client/server atm with sockets

Hello everyone!I would appreciate any help you could give me,I have to make a program of an atm machine using client server sockets and semaphores.I know how to construct an ATM in c++ but don't know anything about unix c.The problem is that Don't know what to do and how to link the two programs... (0 Replies)
Discussion started by: tamanas
0 Replies

7. Solaris

Configuring send mail client in solaris 10

Dear all, We have SMTP server in our organization & i want to send e-mails from solaris machine using sendmail ... in which file i need to put the smtp server ip, username & passwd.. kindly help ....... (4 Replies)
Discussion started by: vishwanathhcl
4 Replies

8. Programming

sockets - can you send data while waiting on select()

Hey guys, Is it possible to have a worker thread send data out a TCP connection while another thread is waiting using using select() on that same connection? If not, then what is the correct way to maintain a connection, react to incoming data, and send data over a TCP connection? Thanks... (16 Replies)
Discussion started by: scubanarc
16 Replies

9. UNIX for Dummies Questions & Answers

Configuring mail to send email from server to client

Hi, I want to send an email from server to my gmail account for all critical messages reported in the server. Kindly help me in configuring the same. Regards Rochit (1 Reply)
Discussion started by: rochitsharma
1 Replies

10. IP Networking

Packetize data to send it over tcp sockets

Hello All, I am very new to socket programming and client server architecture. I have to write a client which will send some data to server and server will display it on its console. I am ready with both client and server but my problem is with packetizing of data -- I have... (1 Reply)
Discussion started by: anand.shah
1 Replies
VSOCK(7)						     Linux Programmer's Manual							  VSOCK(7)

NAME
vsock - Linux VSOCK address family SYNOPSIS
#include <sys/socket.h> #include <linux/vm_sockets.h> stream_socket = socket(AF_VSOCK, SOCK_STREAM, 0); datagram_socket = socket(AF_VSOCK, SOCK_DGRAM, 0); DESCRIPTION
The VSOCK address family facilitates communication between virtual machines and the host they are running on. This address family is used by guest agents and hypervisor services that need a communications channel that is independent of virtual machine network configuration. Valid socket types are SOCK_STREAM and SOCK_DGRAM. SOCK_STREAM provides connection-oriented byte streams with guaranteed, in-order deliv- ery. SOCK_DGRAM provides a connectionless datagram packet service with best-effort delivery and best-effort ordering. Availability of these socket types is dependent on the underlying hypervisor. A new socket is created with socket(AF_VSOCK, socket_type, 0); When a process wants to establish a connection, it calls connect(2) with a given destination socket address. The socket is automatically bound to a free port if unbound. A process can listen for incoming connections by first binding to a socket address using bind(2) and then calling listen(2). Data is transmitted using the send(2) or write(2) families of system calls and data is received using the recv(2) or read(2) families of system calls. Address format A socket address is defined as a combination of a 32-bit Context Identifier (CID) and a 32-bit port number. The CID identifies the source or destination, which is either a virtual machine or the host. The port number differentiates between multiple services running on a sin- gle machine. struct sockaddr_vm { sa_family_t svm_family; /* Address family: AF_VSOCK */ unsigned short svm_reserved1; unsigned int svm_port; /* Port # in host byte order */ unsigned int svm_cid; /* Address in host byte order */ }; svm_family is always set to AF_VSOCK. svm_reserved1 is always set to 0. svm_port contains the port number in host byte order. The port numbers below 1024 are called privileged ports. Only a process with the CAP_NET_BIND_SERVICE capability may bind(2) to these port numbers. There are several special addresses: VMADDR_CID_ANY (-1U) means any address for binding; VMADDR_CID_HYPERVISOR (0) is reserved for services built into the hypervisor; VMADDR_CID_RESERVED (1) must not be used; VMADDR_CID_HOST (2) is the well-known address of the host. The special constant VMADDR_PORT_ANY (-1U) means any port number for binding. Live migration Sockets are affected by live migration of virtual machines. Connected SOCK_STREAM sockets become disconnected when the virtual machine migrates to a new host. Applications must reconnect when this happens. The local CID may change across live migration if the old CID is not available on the new host. Bound sockets are automatically updated to the new CID. Ioctls IOCTL_VM_SOCKETS_GET_LOCAL_CID Get the CID of the local machine. The argument is a pointer to an unsigned int. ioctl(socket, IOCTL_VM_SOCKETS_GET_LOCAL_CID, &cid); Consider using VMADDR_CID_ANY when binding instead of getting the local CID with IOCTL_VM_SOCKETS_GET_LOCAL_CID. ERRORS
EACCES Unable to bind to a privileged port without the CAP_NET_BIND_SERVICE capability. EADDRINUSE Unable to bind to a port that is already in use. EADDRNOTAVAIL Unable to find a free port for binding or unable to bind to a nonlocal CID. EINVAL Invalid parameters. This includes: attempting to bind a socket that is already bound, providing an invalid struct sockaddr_vm, and other input validation errors. ENOPROTOOPT Invalid socket option in setsockopt(2) or getsockopt(2). ENOTCONN Unable to perform operation on an unconnected socket. EOPNOTSUPP Operation not supported. This includes: the MSG_OOB flag that is not implemented for the send(2) family of syscalls and MSG_PEEK for the recv(2) family of syscalls. EPROTONOSUPPORT Invalid socket protocol number. The protocol should always be 0. ESOCKTNOSUPPORT Unsupported socket type in socket(2). Only SOCK_STREAM and SOCK_DGRAM are valid. VERSIONS
Support for VMware (VMCI) has been available since Linux 3.9. KVM (virtio) is supported since Linux 4.8. Hyper-V is supported since Linux 4.14. SEE ALSO
bind(2), connect(2), listen(2), recv(2), send(2), socket(2), capabilities(7) Linux 2017-11-30 VSOCK(7)
All times are GMT -4. The time now is 08:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy