// basic send-only testing
basic send-only testing
// basic send - only testing
func TestCast(t *testing.T) {
	serverName := "cleartext server name"
	server := bilateralrpc.NewPlaintext(networkName, serverName)
	defer server.Close()
	serverAddress := "tcp://127.0.0.1:9979"
	if err := server.ListenOn(serverAddress); nil != err {
		t.Fatalf("ConnectTo: err = %v", err)
	}
	last := new(LastItem)
	server.Register(last)
	clientName := "a unique client name"
	client := bilateralrpc.NewPlaintext(networkName, clientName)
	defer client.Close()
	client.Register(last)
	if err := client.ConnectTo(serverName, serverAddress); nil != err {
		t.Fatalf("ConnectTo: err = %v", err)
	}
	waitConnect(t, client, 1)
	runCast(t, client, clientName, 765, last)
}
func TestCast ( t * testing . T ) { serverName := " " server := bilateralrpc . NewPlaintext ( networkName , serverName ) defer server . Close ( ) serverAddress := " " if err := server . ListenOn ( serverAddress ) ; nil != err { t . Fatalf ( " " , err ) } last := new ( LastItem ) server . Register ( last ) clientName := " " client := bilateralrpc . NewPlaintext ( networkName , clientName ) defer client . Close ( ) client . Register ( last ) if err := client . ConnectTo ( serverName , serverAddress ) ; nil != err { t . Fatalf ( " " , err ) } waitConnect ( t , client , 1 ) runCast ( t , client , clientName , 765 , last ) }
basic send-only testing
basic send - only testing
// create a server // use a specific IP:Port so client can use this - (for testing with tcp) //serverAddress := "inproc://test_bilateral_calling" // listen on a port // register server objects // create a client // allow time to connect - since handshake must occur in the background