[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] Networking with MiniOS



Dear All,

I am trying to enable networking with MiniOS.

I created a daytime server based on daytime.c shipped with MiniOS. The code in daytime.c is copied into stubdom/c/main.c and built with c-stubdom. 
Server thread is created successfully but client cannot establish tcp connection with server thread, neither from MiniOS itself or from anther VM (dom0).

The client code in MiniOS is:
-------------------------------
 while (1){
        targetconn = netconn_new(NETCONN_TCP);
            if ( targetconn == NULL ) {         
            /* No memory for new connection? */
            continue;
        }
        rc = netconn_bind(targetconn, &localip, 0);
        //... success binding
        rc = netconn_connect ( targetconn, &remote_ip, LISTEN_PORT ); 
        
        if ( rc != ERR_OK )
        {
            // always catched the error here
            printf("----%s: Error connecting. Now reconnect...\n", __FUNCTION__);
            netconn_delete ( targetconn );
            continue;
        }
    }
-------------------------------------------------

On dom0, I used telnet <minios-ip> <port> to connect, also with no luck.

Could anyone give some hints how should I build a tcp connection with MiniOS?  

Best,
Lele Ma

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.