Sponsored Content
Top Forums Programming Socket dual client/server Linux Post 302924416 by DGPickett on Sunday 9th of November 2014 01:02:47 PM
Old 11-09-2014
IPV6 clients can use low ip/port IPV4 servers, and IPV4 cients can use low ip/port IPV6 servers as long as there is a dual IP stack on the server and dual net fabric between. Remember that, on a client or server, a connection just devolves into an open socket fd. If I am listening on or connecting to port 80 TCP, I never know which stack my connection came from.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

simple client/server in linux

i am working on a C code, i have client and server client sends "list <foldername>" server needs to copy the files in the folder to a string. so that i can send that string back to the client. i heard there is a function to handle this in linux, do you know? (1 Reply)
Discussion started by: najdorf
1 Replies

2. 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

3. UNIX for Dummies Questions & Answers

socket programming : client server IPC

I'm new to socket programming. Have a basic doubt. I have a structure(global) at the server side. I have two different client connecting to the server. Will the changes made by one client on the structure be visible to the other client when it accesses the same client? I'm creating a STREAM... (3 Replies)
Discussion started by: abc.working
3 Replies

4. Linux

running Client-Server prog on 2 LInux boxes

hi , i have 2 linux boxes with linksys wireless adapters everything is working fine.now i am trying to run client-server program written in C on these boxes but none of the box is receiving any packets. how different it is when using wireless . All these codes that i have works fine on Unix though... (1 Reply)
Discussion started by: phantom308
1 Replies

5. UNIX for Dummies Questions & Answers

Help connecting to linux server from shh client in windows!

I just installed the latest version of unbuntu server and want to connect from windows using a ssh client. This is my first linux server, so bare with me =) For my server... cat /etc/hostsgives me 127.0.0.1 localhost 127.0.1.1 ubuntuHomeI tried using ssh secure shell and putty in vista.... (11 Replies)
Discussion started by: Bandit390
11 Replies

6. Programming

Client/Server Socket Application - Preventing Client from quitting on server crash

Problem - Linux Client/Server Socket Application: Preventing Client from quitting on server crash Hi, I am writing a Linux socket Server and Client using TCP protocol on Ubuntu 9.04 x64. I am having problem trying to implement a scenario where the client should keep running even when the... (2 Replies)
Discussion started by: varun.nagpaal
2 Replies

7. Programming

how can I send and receive data in client server socket programing

char name; printf ("Welcome to the server \n"); printf ("Enter user name: \n"); scanf ("%c", &name); how can client send name to server:what should be the code? int send ( int sid , const char ∗buffer Ptr , int len , int f l a g ) how can client receive ack from... (1 Reply)
Discussion started by: saiful_911
1 Replies

8. Programming

socket programing in client server

hei, i want to enter name and read it by client server socket program after checking name validity put the password and check.if ok than server clirnt say correct other wise incorrect. below my code: char name; printf ("Welcome to the server \n"); printf ("Enter user name: \n"); scanf... (1 Reply)
Discussion started by: saiful_911
1 Replies

9. Programming

UDP linux client and Windows server

Hi, I have a situation where i need to communicate a linux client with a windows server, I am using a UDP socket communication channel. I am able to send packets from my linux clients to the windows server but unable to receive any data packet from the server. Do i need to make any setting in... (0 Replies)
Discussion started by: John20
0 Replies

10. Programming

C Socket Client/Server Fork Loop

Hello people. I'm trying to do something like a search engine. Server runs in the background by using ./server & which has data from a textfile stored in an array. Client then runs by using ./client It will then prompt "Search for:" For example, if I searched for Products called Instant... (0 Replies)
Discussion started by: andylbh
0 Replies
MYSQLND_MS_DUMP_SERVERS(3)						 1						MYSQLND_MS_DUMP_SERVERS(3)

mysqlnd_ms_dump_servers - Returns a list of currently configured servers

SYNOPSIS
array mysqlnd_ms_dump_servers (mixed $connection) DESCRIPTION
Returns a list of currently configured servers. PARAMETERS
o $connection - A MySQL connection handle obtained from any of the connect functions of the mysqli, mysql or PDO_MYSQL extensions. RETURN VALUES
FALSE on error. Otherwise, returns an array with two entries masters and slaves each of which contains an array listing all corresponding servers. The function can be used to check and debug the list of servers currently used by the plugin. It is mostly useful when the list of servers changes at runtime, for example, when using MySQL Fabric. masters and slaves server entries +-----------------+--------------------------------------+---+ | Key | | | | | | | | | Description | | | | | | | | Version | | | | | | +-----------------+--------------------------------------+---+ | | | | |name_from_config | | | | | | | | | Server entry name from config, if | | | | appliciable. NULL if no configura- | | | | tion name is available. | | | | | | | | Since 1.6.0. | | | | | | | | | | | hostname | | | | | | | | | Host name of the server. | | | | | | | | Since 1.6.0. | | | | | | | | | | | user | | | | | | | | | Database user used to authenticate | | | | against the server. | | | | | | | | Since 1.6.0. | | | | | | | | | | | port | | | | | | | | | TCP/IP port of the server. | | | | | | | | Since 1.6.0. | | | | | | | | | | | socket | | | | | | | | | Unix domain socket of the server. | | | | | | | | Since 1.6.0. | | | | | | +-----------------+--------------------------------------+---+ NOTES
Note mysqlnd_ms_dump_servers(3) requires PECL mysqlnd_ms >> 1.6.0. EXAMPLES
Example #1 mysqlnd_ms_dump_servers(3) example { "myapp": { "master": { "master1": { "host":"master1_host", "port":"master1_port", "socket":"master1_socket", "db":"master1_db", "user":"master1_user", "password":"master1_pw" } }, "slave": { "slave_0": { "host":"slave0_host", "port":"slave0_port", "socket":"slave0_socket", "db":"slave0_db", "user":"slave0_user", "password":"slave0_pw" }, "slave_1": { "host":"slave1_host" } } } } <?php $link = mysqli_connect("myapp", "global_user", "global_pass", "global_db", 1234, "global_socket"); var_dump(mysqlnd_ms_dump_servers($link); ?> The above example will output: array(2) { ["masters"]=> array(1) { [0]=> array(5) { ["name_from_config"]=> string(7) "master1" ["hostname"]=> string(12) "master1_host" ["user"]=> string(12) "master1_user" ["port"]=> int(3306) ["socket"]=> string(14) "master1_socket" } } ["slaves"]=> array(2) { [0]=> array(5) { ["name_from_config"]=> string(7) "slave_0" ["hostname"]=> string(11) "slave0_host" ["user"]=> string(11) "slave0_user" ["port"]=> int(3306) ["socket"]=> string(13) "slave0_socket" } [1]=> array(5) { ["name_from_config"]=> string(7) "slave_1" ["hostname"]=> string(11) "slave1_host" ["user"]=> string(12) "gloabal_user" ["port"]=> int(1234) ["socket"]=> string(13) "global_socket" } } } PHP Documentation Group MYSQLND_MS_DUMP_SERVERS(3)
All times are GMT -4. The time now is 01:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy